﻿using System;
using System.ComponentModel.DataAnnotations;

namespace MiniWeb.Web.Controllers.Admin.ProductsInfoManager.ViewModels
{
    public class SaveProductsInfo
    {

        public int? ID { get; set; }

        [Display(Name = "商品名称"), Required(ErrorMessage = "请输入商品名称！")]
        public string ProductsName { get; set; }

        [Display(Name = "商品短描述")]
        public string JianJie { get; set; }

        [Display(Name = "价格"), Required(ErrorMessage = "请输入价格！")]
        public decimal Price { get; set; }

        [Display(Name = "促销价"), Required(ErrorMessage = "请输入促销价！")]
        public decimal CPrice { get; set; }

        [Display(Name = "已销售"), Required(ErrorMessage = "请输入已销售！")]
        public int SellNum { get; set; }

        [Display(Name = "库存"), Required(ErrorMessage = "请输入库存！")]
        public int KuCunNum { get; set; }

        [Display(Name = "现存"), Required(ErrorMessage = "请输入现存！")]
        public int TotalNum { get; set; }

        [Display(Name = "商品概况")]
        public string Des { get; set; }

        [Display(Name = "商品大类别"), Required(ErrorMessage = "请输入商品大类别！")]
        public int ProductsTypeID { get; set; }

        [Display(Name = "商品二级类别"), Required(ErrorMessage = "请输入商品二级类别！")]
        public int ProductsClassID { get; set; }

    
        [Display(Name = "是否促销")]
        public bool IsChuXiao { get; set; }

        [Display(Name = "是否显示在首页")]
        public bool IsWeb { get; set; }

        [Display(Name = "排序")]
        public int Sort { get; set; }

        [Display(Name = "是否上价")]
        public bool IsSell { get; set; }

        [Display(Name = "是否热卖")]
        public bool IsHot { get; set; }

         [Display(Name = "商品主图")]
        public string ProductImg { get; set; }





    }
}